package com.ptswitch.material.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ptswitch.material.dao.EMailAddressDao;
import com.ptswitch.material.model.EMailAddress;
import com.ptswitch.material.service.EMailAddressService;
@Service("eMailAddressSer")
public class EMailAddressServiceImpl extends LoggerService implements EMailAddressService {
	@Resource
	private EMailAddressDao eMailAddressDao;
	
	public long countAll() {
		return eMailAddressDao.countAll();
	}

	public long countLike(String like) {
		return eMailAddressDao.countLike(like);
	}
	
	public void delete(String id){
		eMailAddressDao.delete(id);
	}

	public void delete(EMailAddress model) {
		eMailAddressDao.delete(model);
	}
	
	public void deleteAll(){
		eMailAddressDao.deleteAll();
	}
	
	public void deleteAll(List<EMailAddress> models){
		
	}

	public EMailAddress get(String id) {
		return eMailAddressDao.get(id);
	}
	
	public List getAll(){
		return eMailAddressDao.getAll();
	}
	
	public List getAll(long first, long size) {
		return eMailAddressDao.getAll(first, size);
	}

	public List getLike(String like, long first, long size) {
		return eMailAddressDao.getLike(like, first, size);
	}

	public void save(EMailAddress model) {
		eMailAddressDao.save(model);
	}
	
	public void saveAll(List<EMailAddress> models) {
		eMailAddressDao.saveAll(models);
	}


	public long countLike(EMailAddress model) {
		// TODO Auto-generated method stub
		return 0;
	}

	public List<EMailAddress> getLike(EMailAddress model, long first, long size) {
		// TODO Auto-generated method stub
		return null;
	}
	
	public String valid(EMailAddress model){
		return null;
	}
}
